import request from '@/utils/request'

export function getclustersparingconf(params) {
  return request({
    url: 'api/clustersparingconf/page',
    method: 'get',
    params
  })
}
export function del(ids) {
  return request({
    url: 'api/clustersparingconf',
    method: 'put',
    data: ids
  })
}
export function edit(data) {
  return request({
    url: 'api/clustersparingconf',
    method: 'put',
    data
  })
}
export function add(data) {
  return request({
    url: 'api/clustersparingconf',
    method: 'post',
    data
  })
}

export function InitializationScan(data) {
  return request({
    url: 'api/scanmetadata/hiveMetadataToOracle',
    method: 'post',
    data
  })
}
export function download() {
  return request({
    url: 'api/scanmetadatawguat/getFiles?flag=UAT',
    method: 'get',
    responseType: 'blob'
  })
}
export function readExcel(data) {
  return request({
    url: 'api/scanmetadatawguat/readExcel',
    method: 'post',
    data
  })
}
export function wgUATbasicdata(params) {
  return request({
    url: 'api/scanmetadatawguat/page',
    method: 'get',
    params
  })
}

export default { getclustersparingconf, del, edit, add, InitializationScan, download, readExcel, wgUATbasicdata }
